#include"Comm.hpp"

int main(){
    Shm serShm(1024,IPC_CREAT|IPC_EXCL|0666,SHM_RDONLY);
    char* serAddr=(char*)serShm.commShm();

    FIFOSig serSig("r");
    while(true){
        serSig.wait();
        std::cout<<serAddr<<std::endl;
        if(!strcmp(serAddr,"quit"))
            break;
    }
    serSig.fifoClose();

    serShm.destoryShm();
    return 0;
}